import request from '@/utils/request'

// 查询维修分类列表
export function listRepairCategory(query) {
  return request({
    url: '/manage/repairCategory/list',
    method: 'get',
    params: query
  })
}

// 查询维修分类详细
export function getRepairCategory(id) {
  return request({
    url: '/manage/repairCategory/' + id,
    method: 'get'
  })
}

// 新增维修分类
export function addRepairCategory(data) {
  return request({
    url: '/manage/repairCategory',
    method: 'post',
    data: data
  })
}

// 修改维修分类
export function updateRepairCategory(data) {
  return request({
    url: '/manage/repairCategory',
    method: 'put',
    data: data
  })
}

// 删除维修分类
export function delRepairCategory(id) {
  return request({
    url: '/manage/repairCategory/' + id,
    method: 'delete'
  })
}
